<?php
// +----------------------------------------------------------------------
// | CatchAdmin [Just Like ～ ]
// +----------------------------------------------------------------------
// | Copyright (c) 2017~{$year} http://catchadmin.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( https://github.com/yanwenwu/catch-admin/blob/master/LICENSE.txt )
// +----------------------------------------------------------------------
// | Author: JaguarJack [ njphper@gmail.com ]
// +----------------------------------------------------------------------

// you should use `$router`
/* @var think\Route $router */
$router->group(function () use ($router) {
    //分类
    $router->resource('shoppingClassify', '\catchAdmin\shopping\controller\ShoppingClassify');
    //品牌
    $router->resource('shoppingBrand', '\catchAdmin\shopping\controller\ShoppingBrand');
    //品类
    $router->resource('shoppingCategory', '\catchAdmin\shopping\controller\ShoppingCategory');
    //产品
    $router->resource('shoppingProduct', '\catchAdmin\shopping\controller\ShoppingProduct');
    //商品
    $router->resource('shoppingGoods', '\catchAdmin\shopping\controller\ShoppingGoods');
    //库存单位
    $router->resource('shoppingSkuUnit', '\catchAdmin\shopping\controller\ShoppingSkuUnit');

    //获取品牌
    $router->any('getShoppingBrand', '\catchAdmin\shopping\controller\ShoppingBrand@getShoppingBrand');
    //获取品类
    $router->any('getShoppingCategory', '\catchAdmin\shopping\controller\ShoppingCategory@getShoppingCategory');
    //获取产品
    $router->any('getShoppingProduct', '\catchAdmin\shopping\controller\ShoppingProduct@getShoppingProduct');
    //获取库存单位
    $router->any('getShoppingSkuUnit', '\catchAdmin\shopping\controller\ShoppingSkuUnit@getShoppingSkuUnit');
})->middleware('auth');

